package com.wzcl.app.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Pattern;

public class CheckUtil {
    public static boolean phoneCheck(String phone){
        if(StringUtils.isBlank(phone)){
            return false;
        }
        String rules= "/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/";
        return Pattern.matches(rules, phone);
    }
}
